import 'element-ui/lib/theme-default/index.css'
import Masonry from 'masonry-layout/masonry'


require('./app')({
}, function() {
  // $(function() {
  //   var elem = document.querySelector('.grid');
  //   var msnry = new Masonry( elem, {
  //     itemSelector: '.grid-item'
  //   });
  // })
    const _this = this
    var elem = document.querySelector('.grid');
    var msnry = new Masonry( elem, {
      itemSelector: '.grid-item'
    });
}, {
  currentCases: {},
  dialogTableVisible: false
}, {
  displayImgs: {
    get: function() {
      return this.currentCases
    }
  }
}, {
  girdItemClick(product_case) {
    console.log(product_case)
    const _this = this
    _this.currentCases = product_case
    // _this.currentCases = images.map(item => {
    //   return decodeURIComponent(item).toString()
    // })
    _this.dialogTableVisible = true
  }
}, {}, {
  currentCases(val, oldVal) {
    console.log(val, oldVal)
  }
})
